package com.ruoyi.stuinfo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stuinfo.mapper.StudentActivityMapper;
import com.ruoyi.stuinfo.domain.StudentActivity;
import com.ruoyi.stuinfo.service.IStudentActivityService;

/**
 * 综测情况Service业务层处理
 *
 * @author zc
 * @date 2025-05-18
 */
@Service
public class StudentActivityServiceImpl implements IStudentActivityService
{
    @Autowired
    private StudentActivityMapper studentActivityMapper;

    /**
     * 查询综测情况
     *
     * @param id 综测情况主键
     * @return 综测情况
     */
    @Override
    public StudentActivity selectStudentActivityById(Long id)
    {
        return studentActivityMapper.selectStudentActivityById(id);
    }

    /**
     * 查询综测情况列表
     *
     * @param studentActivity 综测情况
     * @return 综测情况
     */
    @Override
    public List<StudentActivity> selectStudentActivityList(StudentActivity studentActivity)
    {
        return studentActivityMapper.selectStudentActivityList(studentActivity);
    }

    /**
     * 新增综测情况
     *
     * @param studentActivity 综测情况
     * @return 结果
     */
    @Override
    public int insertStudentActivity(StudentActivity studentActivity)
    {
        return studentActivityMapper.insertStudentActivity(studentActivity);
    }

    /**
     * 修改综测情况
     *
     * @param studentActivity 综测情况
     * @return 结果
     */
    @Override
    public int updateStudentActivity(StudentActivity studentActivity)
    {
        return studentActivityMapper.updateStudentActivity(studentActivity);
    }

    /**
     * 批量删除综测情况
     *
     * @param ids 需要删除的综测情况主键
     * @return 结果
     */
    @Override
    public int deleteStudentActivityByIds(Long[] ids)
    {
        return studentActivityMapper.deleteStudentActivityByIds(ids);
    }

    /**
     * 删除综测情况信息
     *
     * @param id 综测情况主键
     * @return 结果
     */
    @Override
    public int deleteStudentActivityById(Long id)
    {
        return studentActivityMapper.deleteStudentActivityById(id);
    }

    public List<StudentActivity> selectStudentActivityList_handteacher(String teacherId)
    {
        return studentActivityMapper.selectStudentActivityList_handteacher(teacherId);
    }

    @Override
    public List<StudentActivity> selectStudentActivityList_Xiteacher(String teacherId) {
        return studentActivityMapper.selectStudentActivityList_Xiteacher(teacherId);
    }
}
